package com.ehotting.edsta.circuitDesign.domain;

import com.ehotting.edsta.circuitDesign.enums.CircuitTypeEnum;
import com.ehotting.eaf.core.annotation.Excel;
import com.ehotting.eaf.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 电路类型对象 es_circuit_type
 * 
 * @author edsta
 * @date 2023-07-24
 */
public class EsCircuitType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 序号 */
    @Excel(name = "序号")
    private Long priority;

    /** 电路类型枚举 */
    @Excel(name = "电路类型")
    private CircuitTypeEnum circuitType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPriority(Long priority) 
    {
        this.priority = priority;
    }

    public Long getPriority() 
    {
        return priority;
    }

    public CircuitTypeEnum getCircuitType() {
        return circuitType;
    }

    public void setCircuitType(CircuitTypeEnum circuitType) {
        this.circuitType = circuitType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("priority", getPriority())
            .append("circuitType", getCircuitType())
            .toString();
    }
}
